package com.tqz.dt.proxy;

import org.springframework.aop.Advisor;
import org.springframework.context.ApplicationContext;

import java.util.List;

/**
 * <p>默认创建aop搭理工厂实现类
 *
 * @author tianqingzhao
 * @since 2021/7/7 15:33
 */
public class DefaultAopProxyFactory implements AopProxyFactory {

    @Override
    public AopProxy createAopProxy(Object bean, String beanName, List<Advisor> matchAdvisors, ApplicationContext applicationContext) throws Throwable {
        return new JdkDynamicAopProxy(beanName, bean, matchAdvisors, applicationContext);
    }
}
